package cn.itcast.usermanage.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.abel533.entity.Example;

import cn.itcast.usermanage.mapper.VidelMapper;
import cn.itcast.usermanage.pojo.Search;
import cn.itcast.usermanage.pojo.Videl;


@Service
public class VidelService {
    
    @Autowired
    private VidelMapper videlMapper;

   

    public Videl queryByid(int id) {
        // TODO Auto-generated method stub
        return this.videlMapper.selectByPrimaryKey(id);
    }



    public List<Videl> queryBySid(Videl videl) {
        // TODO Auto-generated method stub
        
        Example example = new Example(Videl.class);
        example.createCriteria().andEqualTo("sid", videl.getSid());
        return this.videlMapper.selectByExample(example);
    }

}
